package com.newdjk.newdoctor.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.widget.AppCompatButton;

import com.newdjk.newdoctor.BasActivity;
import com.newdjk.newdoctor.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class RegisterSuccessActivity extends BasActivity {


    @BindView(R.id.btn_nextstep)
    AppCompatButton btnNextstep;

    @Override
    public boolean IsShowBackIcon() {
        return true;
    }

    @Override
    protected String setTitle() {
        return "注册成功";
    }

    @Override
    protected int initViewResId() {
        return R.layout.activity_register_success;
    }

    @Override
    protected void initListener() {
        btnNextstep.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                Intent intent = new Intent(RegisterSuccessActivity.this, LoginActivity.class);
                intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
                startActivity(intent);
            }
        });
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initView() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
